<%--
  Created by IntelliJ IDEA.
  User: tugou
  Date: 2017/5/31
  Time: 11:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>

<%@ page pageEncoding="UTF-8" %>
<html>
<head>
    <title>图片管理后台</title>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/main.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/list.css">
    <!--导航-->
    <script src="<%=basePath%>js/jquery.min.js"></script>
</head>
<body>
<div id="sidebar">
    <ul>
        <li><a href="<%=basePath%>sys/index/1"><i class="icon icon_home"></i><span>首页</span></a></li>
    </ul>
</div>
<div id="content">
    <div class="welcome">图片管理后台</div>
    <div id="exam">
        <c:forEach var="i" items="${photoList}">
            <dl><a href="exam_paper.html" target="_self"><div class="img" style="background: rgba( 0, 0, 0, 0.8 ) url(<%=basePath%>${i.path}) center no-repeat"></div><dd></dd><dt>${i.name}</dt></a></dl>
        </c:forEach>
    </div>
    <footer>© 2017 All Rights Reserved</footer>
</div>
</body>
</html>
